-- GENERATED SPELL FOR [Grovestalker Lynx] --


function spell0_21022(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(36589,pUnit)
pUnit:RegisterEvent('Sorts_21022', 15253, 1)
end

function Sorts_21022(pUnit, Event)
local choix_sorts_21022 = math.random(0, 0)
if choix_sorts_21022 == 0 then
pUnit:RegisterEvent('spell0_21022', 1, 1)
end
end

function mob21022_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21022', math.random(1500, 3000), 1)
end

function mob21022_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21022_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21022_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21022, 1, 'mob21022_Action')
RegisterUnitEvent(21022, 2, 'mob21022_Leave')
RegisterUnitEvent(21022, 3, 'mob21022_Kill')
RegisterUnitEvent(21022, 4, 'mob21022_Die')
